package com.example.test.策略模式.iimpl;

import com.example.test.策略模式.抽象.AbstractHaddel;
import org.springframework.stereotype.Service;

@Service
public class IMPL2 extends AbstractHaddel {
    @Override
    public int addone(int num) {
        num = num+5;
        return num;
    }

    @Override
    public boolean getaddservice(int num) {
        return num==10;
    }

}
